import apiClient from './index'

export default {
  getCategories() {
    return apiClient.get('/categories')
  },
  createCategory(category: { name: string }) {
    return apiClient.post('/categories', category)
  },
  deleteCategory(id: number) {
    return apiClient.delete(`/categories/${id}`)
  }
}